m01djf
m01djf
© Numerical Algorithms Group, 2002.
Purpose
M01DJF Rank columns of a matrix, real numbers
Synopsis
[irank,ifail] = m01djf(rm<,order,ifail>)
Description
M01DJF ranks the columnsof a matrix. The ordering is determined by
first ranking the data in row 1, then ranking any tied columns
according to the data in row 2, and so on.
M01DJF uses a variant of list-merging. The routine takes
advantage of natural ordering in the data, and uses a simple list
insertion in a preparatory pass to generate ordered lists of
length at least 10. The ranking is stable: equal columns preserve
their ordering in the input data.
Parameters
m01djf
Required Input Arguments:
rm (:,:) real
Optional Input Arguments: <Default>
order (1) string 'a'
ifail integer -1
Output Arguments:
irank (:) integer
ifail integer